set(
  mann_EN
  3ptarb.xml
  B.xml
  bigE.xml
  M.xml
  Z.xml
  adc.xml
  ae.xml
  ae2dir.xml
  analyze.xml
  animmate.xml
  apropos.xml
  aproposdevel.xml
  aproposlib.xml
  arb.xml
  arced.xml
  area.xml
  arot.xml
  art.xml
  attach.xml
  attr.xml
  autoview.xml
  bb.xml
  bev.xml
  bo.xml
  bot.xml
  bot_check.xml
  bot_condense.xml
  bot_decimate.xml
  bot_extrude.xml
  bot_face_fuse.xml
  bot_face_sort.xml
  bot_flip.xml
  bot_repair.xml
  bot_split.xml
  bot_sync.xml
  bot_vertex_fuse.xml
  brep.xml
  brep_info.xml
  brep_intersect.xml
  brep_plot.xml
  brep_selection.xml
  build_region.xml
  c.xml
  cat.xml
  cd.xml
  center.xml
  check.xml
  clear.xml
  clone.xml
  color.xml
  comb.xml
  comb_color.xml
  copyeval.xml
  copymat.xml
  cp.xml
  cpi.xml
  d.xml
  db.xml
  db_glob.xml
  dbconcat.xml
  dbfind.xml
  dbfindtree.xml
  dbupgrade.xml
  debug.xml
  debugbu.xml
  debugdir.xml
  debuglib.xml
  debugnmg.xml
  decompose.xml
  delay.xml
  dir2ae.xml
  dm.xml
  draw.xml
  dump.xml
  dup.xml
  e.xml
  e_id.xml
  eac.xml
  echo.xml
  edcodes.xml
  edcolor.xml
  edcomb.xml
  edgedir.xml
  edit.xml
  edit_translate.xml
  edmater.xml
  env.xml
  eqn.xml
  erase.xml
  ev.xml
  exists.xml
  exit.xml
  expand.xml
  extrude.xml
  eye_pt.xml
  facedef.xml
  facetize.xml
  fracture.xml
  g.xml
  garbage_collect.xml
  gdiff.xml
  get.xml
  gqa.xml
  gr.xml
  graph.xml
  gui.xml
  help.xml
  helpdevel.xml
  helplib.xml
  hide.xml
  history.xml
  i.xml
  idents.xml
  igraph.xml
  ill.xml
  in.xml
  inside.xml
  item.xml
  journal.xml
  keep.xml
  keypoint.xml
  kill.xml
  killall.xml
  killrefs.xml
  killtree.xml
  knob.xml
  l.xml
  labelvert.xml
  lc.xml
  lint.xml
  listeval.xml
  loadtk.xml
  lookat.xml
  ls.xml
  lt.xml
  make.xml
  make_pnts.xml
  man.xml
  mater.xml
  material.xml
  matpick.xml
  mirface.xml
  mirror.xml
  mrot.xml
  mv.xml
  mvall.xml
  nirt.xml
  nmg_collapse.xml
  nmg_simplify.xml
  npush.xml
  oed.xml
  opendb.xml
  orientation.xml
  orot.xml
  oscale.xml
  overlaps_tool.xml
  overlay.xml
  p.xml
  pathlist.xml
  paths.xml
  permute.xml
  plot.xml
  pnts.xml
  postscript.xml
  prcolor.xml
  prefix.xml
  press.xml
  preview.xml
  prj_add.xml
  process.xml
  ps.xml
  pull.xml
  push.xml
  put.xml
  put_comb.xml
  putmat.xml
  pwd.xml
  q.xml
  qorot.xml
  qray.xml
  query_ray.xml
  quit.xml
  qvrot.xml
  r.xml
  rcc-blend.xml
  rcc-cap.xml
  rcc-tgc.xml
  rcc-tor.xml
  rcodes.xml
  red.xml
  reair.xml
  refresh.xml
  regdebug.xml
  regdef.xml
  regions.xml
  reid.xml
  release.xml
  relos.xml
  remat.xml
  rfarb.xml
  rm.xml
  rmater.xml
  rot.xml
  rotobj.xml
  rpp-arch.xml
  rpp-cap.xml
  rrt.xml
  rt.xml
  rtarea.xml
  rtcheck.xml
  rtedge.xml
  rtweight.xml
  saveview.xml
  sca.xml
  screengrab.xml
  search.xml
  sed.xml
  setview.xml
  shaded_mode.xml
  shader.xml
  shells.xml
  showmats.xml
  simulate.xml
  size.xml
  solids.xml
  solid_report.xml
  source.xml
  sph-part.xml
  stat.xml
  status.xml
  summary.xml
  sv.xml
  sync.xml
  t.xml
  ted.xml
  title.xml
  tol.xml
  tops.xml
  tor-rcc.xml
  tra.xml
  track.xml
  translate.xml
  tree.xml
  unhide.xml
  units.xml
  vars.xml
  vdraw.xml
  view.xml
  viewdir.xml
  viewsize.xml
  vnirt.xml
  voxelize.xml
  vquery_ray.xml
  vrot.xml
  wcodes.xml
  whatid.xml
  which_shader.xml
  whichair.xml
  whichid.xml
  who.xml
  wmater.xml
  xpush.xml
  zoom.xml
)

# Some DocBook man pages generate multiple output files, if they
# describe more than one command.  Those files need special
# handling, since the CMake logic has no way to know about the
# extra outputs without being told.
set_source_files_properties(gr.xml PROPERTIES EXTRA_MANN_OUTPUTS "dg.nged")

if(BRLCAD_EXTRADOCS)
  add_docbook("HTML;PHP;MANN;PDF" mann_EN mann "" REQUIRED "libged")
endif(BRLCAD_EXTRADOCS)

set(mann_INTRO Introduction.xml)
if(TARGET libged AND BRLCAD_EXTRADOCS)
  add_docbook("HTML;PHP" mann_INTRO mann "")
endif(TARGET libged AND BRLCAD_EXTRADOCS)

cmakefiles(
  CMakeLists.txt
  ${mann_EN}
  ${mann_INTRO}
  mged_cmd_template.xml
)

# Local Variables:
# tab-width: 8
# mode: cmake
# indent-tabs-mode: t
# End:
# ex: shiftwidth=2 tabstop=8
